//
//  ViewController.m
//  存储图片到相册
//
//  Created by J on 15/12/12.
//  Copyright © 2015年 J. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    for (int i=1; i<=9; i++) {
        UIImage * image= [UIImage imageNamed:[NSString stringWithFormat:@"00%d.png",i]];
        UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
        [NSThread sleepForTimeInterval:1.0];
    }
    
    
    
}



@end
